{% extends "base_worklist.html" %}
{%block title%}
İş İstek - Oluştur
{%endblock%}

{%block content%}
    
    {% if form.errors %}
        <p style="color: red;">
            Bilgilerinizde hata var.. Lütfen Düzeltin ({{form.errors|length}}) 
        </p>
    {% endif %}
    
    <div align="center">
		<div id="itsthetable" style="width: 850px; margin-left: auto; margin-right: auto;">
	    <form action="/worklist/isistek/{% if form.id.data  %}{{ form.id.data }}{% else  %}{{ "0" }}{% endif %}/kaydet/" method="POST">
	       
	       <table>
	       
	       <thead>
	       <caption>İş İstek Kaydı Oluştur</caption>
	       </thead>
	       <tbody> 
	       <tr><th>{{ form.sno.label }}</th><td>{{ form.sno }}{% if form.sno.errors %} <small>{{form.sno.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.atolye.label }}</th><td>{{ form.atolye }}{% if form.atolye.errors %} <small>{{form.atolye.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.lokasyon.label }}</th><td>{{form.lokasyon}}{% if form.lokasyon.errors %} <small>{{form.lokasyon.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.cihaz.label}}</th><td>{{ form.cihaz }}{% if form.cihaz.errors %} <small>{{form.cihaz.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.turu.label }}</th><td>{{ form.turu }}{% if form.turu.errors %} <small>{{form.turu.errors}}</small> {% endif %}</td></tr> 
	       <tr><th>{{ form.islem_durum.label }}</th><td>{{form.islem_durum}}{% if form.islem_durum.errors %} <small>{{form.islem_durum.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.aciklama.label }}</th><td>{{form.aciklama}}{% if form.aciklama.errors %} <small>{{form.aciklama.errors}}</small> {% endif %}</td></tr>
	       <tr><th>{{ form.planlanan_baslangic_tarihi.label }}</th><td>{{form.planlanan_baslangic_tarihi}}&nbsp<a href="javascript:NewCssCal('id_planlanan_baslangic_tarihi','yyyymmdd','arrow',true,24,false)">
	                                                                   <img src="/media/images/cal.gif" width="16" height="16" alt="Pick a date"></a>
	                                                                   {% if form.planlanan_baslangic_tarihi.errors %} <small>{{form.planlanan_baslangic_tarihi.errors}}</small> {% endif %}
	                                                                   </td></tr>
	       <tr><th>{{ form.emailbildirimleri.label }}</th><td>{{form.emailbildirimleri}}{% if form.emailbildirimleri.errors %} <small>{{form.emailbildirimleri.errors}}</small> {% endif %}</td></tr>
	       </tbody>
	       <tfoot>
	       <tr><td colspan="2"><input type="submit" onclick="this.disabled=true;this.value='calisiyor';this.form.submit();" value="Kaydet"></td></tr>
		   </tfoot>	
	       </table>
	  	   {{form.id}}
	    </form>
		</div>
	
	</div>	
{%endblock%}

